<template>
  <div class="collect-page">
    <van-nav-bar
  title="收藏列表"
  left-arrow
  @click-left="onClickLeft"
/>

  <!-- <houselist/ v-for="item in list" :key="item.id"> -->
  <Houselist v-for="item in list" :key="item.id" :item="item"></Houselist>
  </div>
</template>

<script>
import Houselist from '@/components/Houselist.vue'
import { getCollect } from '@/api/collect'
export default {
  name: 'HkzfVantCollect',
  components: { Houselist },
  data () {
    return {
      list: []
    }
  },
  async created () {
    const res = await getCollect()
    console.log(res)
    this.list = res.body
  },

  methods: {
    onClickLeft () {
      this.$router.push('/my')
    }
  }
}
</script>

<style lang="less" >

</style>
